package cn.matrix42.potoo.jdbc.dialect.oracle;

import cn.matrix42.potoo.jdbc.dialect.Dialect;
import cn.matrix42.potoo.jdbc.dialect.DialectFactory;

/** Factory for {@link OracleDialect}. */
public class OracleDialectFactory implements DialectFactory {
    @Override
    public boolean acceptsURL(String url) {
        return url.startsWith("jdbc:oracle:");
    }

    @Override
    public Dialect create() {
        return new OracleDialect();
    }
}
